//
//  CityDetailShowVC.swift
//  GoTravel
//
//  Created by lanou3g on 16/3/16.
//  Copyright © 2016年 SHH. All rights reserved.
//

import UIKit

class CityDetailShowVC: UIViewController {

    var url:String?
    var count:Int?
    let label = UILabel()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.count = 1
        self.view.backgroundColor = UIColor.blackColor()
        
        label.frame = self.view.frame
//        label.center = self.view.center
        label.text = "敬请期待下个版本!"
        label.textAlignment = .Center
        label.textColor = UIColor.blueColor()
        label.font = UIFont(name: "Helvetica-BoldOblique", size: 25)
//        label.font = UIFont.systemFontOfSize(25)
        label.layer.shadowColor = UIColor.yellowColor().CGColor
        self.view.addSubview(label)
        print(self.url)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        label.textColor = UIColor(red: CGFloat(rand()%255) / 255.0, green: CGFloat(rand()%255) / 255.0, blue: CGFloat(rand()%255) / 255.0, alpha: 1)
        self.view.backgroundColor = UIColor(red: CGFloat(rand()%255) / 255.0, green: CGFloat(rand()%255) / 255.0, blue: CGFloat(rand()%255) / 255.0, alpha: 1)
        self.count!++
        
        if  self.count == 10 {
            self.dismissViewControllerAnimated(true, completion: nil)
        }
        
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
